package com.semo.ppoomppai;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.widget.TextView;

public class LogoActivity extends Activity {

    private Context ctx;
    
	@Override
    public void onCreate(Bundle savedInstanceState) {
    	requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.logo);
        ctx = this;
        
        Typeface normal_face = Typeface.createFromAsset(getAssets(), "NanumGothic.ttf");
		Typeface bold_face = Typeface.createFromAsset(getAssets(), "NanumGothicBold.ttf");
		
        TextView tv = (TextView) findViewById(R.id.tv_title);
        tv.setTypeface(bold_face);
        tv = (TextView) findViewById(R.id.tv_subtitle);
        tv.setTypeface(bold_face);
        tv = (TextView) findViewById(R.id.tv_subtitle2);
        tv.setTypeface(normal_face);
        
        tv = (TextView) findViewById(R.id.tv_putter);
        tv.setTypeface(bold_face);
        
        
        Handler x = new Handler();
        x.postDelayed(new splashhandler(), 1500);
    }
    
    class splashhandler implements Runnable {
        @Override
        public void run() {
            Intent intent = new Intent(ctx, Ppoomppai.class);
            startActivity(intent);
            finish();
        }        
    }
}
